package io.coding.dao;

import io.coding.model.Bl_main_post;
import io.coding.model.Count;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2014/8/19.
 */

@Repository
public interface PostDao {
    public List<Bl_main_post> findAll();

    public Bl_main_post findBlogById(long id);
    @Update("UPDATE bl_main_post  set reading_quantity=reading_quantity+1 WHERE id =#{id} ")
    void addReadingQuantity(long id);
}

